#include "DataStructure/Input/Property/PSHELLData.h"

#include "DataStructure/Common/Validation.h"

bool SG::DataStructure::FEM::operator== (const PSHELLData &a, const PSHELLData &b)
{
    if (a.m_id != b.m_id)
    {
        return false;
    }
    if (a.m_mId1 != b.m_mId1)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_thickness, b.m_thickness))
    {
        return false;
    }
    if (a.m_mId2 != b.m_mId2)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_bendModify, b.m_bendModify))
    {
        return false;
    }
    if (a.m_mId3 != b.m_mId3)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_ts, b.m_ts))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_nsm, b.m_nsm))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_z[0], b.m_z[0]))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_z[1], b.m_z[1]))
    {
        return false;
    }
    if (a.m_mId4 != b.m_mId4)
    {
        return false;
    }
    if (a.m_domainId != b.m_domainId)
    {
        return false;
    }
    return true;
}